home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6132 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  880 b 

  1. Path: news.microsoft.com!news
  2. From: a-cnadc@microsoft.com (Dann Corbit)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why I can not bind
  5. Date: 22 Feb 1996 21:15:40 GMT
  6. Organization: Microsoft Corporation
  7. Message-ID: <4gimds$2l@news.microsoft.com>
  8. References: <312B86AF.165F@cis.ohio-state.edu>
  9. NNTP-Posting-Host: 157.57.171.202
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <312B86AF.165F@cis.ohio-state.edu>, jun@cis.ohio-state.edu says...
  14. >
  15. >I am learning to write a simple server using C and
  16. >socket routines. I encounter the run time error of
  17. >"Unable to bind". Here below is the code. Thanks in
  18. >advance for the help. (Actually it is Richard 
  19. >Steven's code and not mine)
  20.  
  21. Can you ping: 164.107.128.3 ?
  22.  
  23. When you get an error, your system will diagnose it for you.
  24. You might try something like:
  25.  
  26. sprintf(pszMsgOut, "%s:%d (%s)", __FILE__, __LINE__, strerror( errno ) );
  27.  
  28.  
  29.